//运费设置
export function fetchList() {
  const data = {
    "msg": "成功",
    "code": 200,
    "data": {
      "pageNum": 1,
      "pageSize": 5,
      "totalPage": 3,
      "total": 11,
      "list": [{
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578036738000,
        "shopId": 281,
        "shopName": "怀府街旗舰店",
        "templateId": 26,
        "templateName": "通用模板",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578040541000,
        "shopId": 280,
        "shopName": "怀道居",
        "templateId": 27,
        "templateName": "新疆西藏不发货",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578047066000,
        "shopId": 283,
        "shopName": "食语食品专营店",
        "templateId": 28,
        "templateName": "酒水",
        "templateSort": 1,
        "updateTime": 1578101577000
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578047172000,
        "shopId": 283,
        "shopName": "食语食品专营店",
        "templateId": 29,
        "templateName": "咖啡",
        "templateSort": 2,
        "updateTime": 1578101591000
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578051695000,
        "shopId": 250,
        "shopName": "禾源膳道食品专营店",
        "templateId": 32,
        "templateName": "不包邮地区",
        "templateSort": 1,
        "updateTime": 1578052639000
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578101705000,
        "shopId": 283,
        "shopName": "食语食品专营店",
        "templateId": 33,
        "templateName": "奶粉",
        "templateSort": 3
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578196644000,
        "shopId": 286,
        "shopName": "臻肽美护肤专营店",
        "templateId": 34,
        "templateName": "地区包邮",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578290189000,
        "shopId": 274,
        "shopName": "雪兰伊美妆专营店",
        "templateId": 35,
        "templateName": "偏远地区不包邮",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578295934000,
        "shopId": 266,
        "shopName": "FARACI法兰姿旗舰店",
        "templateId": 36,
        "templateName": "枕头全国包邮（西北六省除外）",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578296010000,
        "shopId": 266,
        "shopName": "FARACI法兰姿旗舰店",
        "templateId": 37,
        "templateName": "床垫全国包邮（西北六省除外）",
        "templateSort": 2
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578296747000,
        "shopId": 282,
        "shopName": "优滋生鲜馆",
        "templateId": 38,
        "templateName": "冬季",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578299063000,
        "shopId": 290,
        "shopName": "广州轻歌生物科技有限公司",
        "templateId": 39,
        "templateName": "新疆西藏+15",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578377409000,
        "shopId": 296,
        "shopName": "柏露食品官方旗舰店",
        "templateId": 40,
        "templateName": "包邮",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578378392000,
        "shopId": 245,
        "shopName": "盛誉天品牌店",
        "templateId": 41,
        "templateName": "新疆、西藏、青海+12元",
        "templateSort": 0
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578451196000,
        "shopId": 278,
        "shopName": "兔の力",
        "templateId": 42,
        "templateName": "百世快递",
        "templateSort": 1,
        "updateTime": 1578465814000
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578474569000,
        "shopId": 297,
        "shopName": "垦丁旺专营店",
        "templateId": 43,
        "templateName": "垦丁旺运费模板",
        "templateSort": 1
      }, {
        "chargeMode": 1,
        "hide": 1,
        "insertTime": 1578565323000,
        "shopId": 239,
        "shopName": "合生优品",
        "templateId": 44,
        "templateName": "西六省不包邮",
        "templateSort": 1
      }]
    }
  }
  return {
    url: 'freight/fetchList',
    method: 'post',
    data: data
  }
}
export function updateDeleteStatus() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'freight/delete',
    method: 'post',
    data: data
  }
}
export function update() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'freight/update',
    method: 'post',
    data: data
  }
}
export function info() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {
      "chargeMode": 1,
      "hide": 1,
      "insertTime": 1578474569000,
      "shopId": 297,
      "shopName": "垦丁旺专营店",
      "templateId": 43,
      "templateName": "垦丁旺运费模板",
      "templateSort": 1,
      "deliveryRules":
      [
        {
          'ruleId':1,
          'citys':["150000", "150100", "150200", "150300", "150400", "150500", "150600", "150700", "150800", "150900", "152200", "152500", "152900"],
          'first':1,
          'firstFree':0,
          'additional':0,
          'additionalFree':0
        }
      ]
    }
  }
  return {
    url: 'freight/info',
    method: 'post',
    data: data
  }
}
export function create() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'freight/create',
    method: 'post',
    data: data
  }
}
